//
//  LoadingView.h
//  TianyaQing
//
//  Created by Liccon Chang on 12-4-16.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    ESmallStyle = 0,
    ELargeStyle,
} LoadingType;

@interface LoadingView : UIImageView {
    UIImageView* rotateBackView_;
    UIImageView* rotateView_;
    UIImageView* rotateView1_;
    UIImageView* rotateView2_;
    UIImageView* rotateView3_;
    UIImageView* rotateView4_;

    UILabel* loadingLabel_;
    
    CGFloat curPercent_;
    NSTimer* timer_;
}

- (id)initWithParentSize:(CGSize)size withText:(NSString*)text withStyle:(LoadingType)type;
//填充外围
- (void)fillingOutsize:(CGFloat)percent;
//让外围开始的旋转
- (void)startRotating;
//让外围停止的旋转
- (void)stopRotating;

- (void)setLoadingText:(NSString*)text;

@end
